import request from '@/utils/request'

export function queryApiPage(query) {
    return request({
        url: '/gateway/api/page',
        method: 'get',
        params: query
    })
}

export function createApi(data) {
    return request({
        url: '/gateway/api/create',
        method: 'post',
        data: data
    })
}

export function updateApi(data) {
    return request({
        url: '/gateway/api/update',
        method: 'put',
        data: data
    })
}

export function delApi(query) {
    return request({
        url: '/gateway/api/del',
        method: 'delete',
        params: query
    })
}